﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using RCREEE.Library.Entities;

namespace RCREEE.Service
{
    /// <summary>
    /// Summary description for Mariam_Service
    /// </summary>
   // [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
  // [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public partial class Service : System.Web.Services.WebService
    {

        ApprovedIncentives app = new ApprovedIncentives();
        //public string HelloWorld()
        //{
        //    return "Hello World";
        //}

        [WebMethod]
        public List<ApprovedIncentives> GetApprovedIncentives(int CountryId, int LanguageCode)
        { 
            
            return app.WebGetApprovedIncentives(CountryId,LanguageCode);
        }

        [WebMethod]
        public ApprovedIncentives GetOneApprovedIncentives(int CountryId, int LanguageCode, int ItemId)
        {
           
            return app.WebGetOneApprovedIncentives(CountryId, LanguageCode,ItemId);
        }
        [WebMethod]
        public bool UpdateApprovedIncentives(List<ApprovedIncentives> Approved)
        {

            return app.UpdateApprovedIncentives(Approved);
        }

      
    }
}
